package demoSingletion;

public class School {
    public static void main(String[] args) {
        Principal principal = Principal.getInstance();
        principal.announcement("今天全校放假3天");

        Principal principal1 = Principal.getInstance();
        principal1.approveDocument("食堂的饭每次都要加肉的文件");

        System.out.println("上述两个是同一位校长吗？" + (principal == principal1));
    }
}
